import type { Router } from 'vue-router'
import { useTabPageStore } from '@/store/modules/appUe'

export function gruadTabPage(router: Router) {
  router.afterEach((to, from) => {
    if (to.name !== from.name) {
      useTabPageStore().addTab(to)
    }
  })
}
